package com.yjy.fuyao.order.client;


import com.yjy.fuyao.order.client.fallback.UcenterClientFallback;
import com.yjy.fuyao.utils.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-ucenter",fallback = UcenterClientFallback.class)
public interface UcenterClient {
    @GetMapping("/api/ucenter/user/getInfo/{userId}")
    public UserVo getUserInfo(@PathVariable String userId);
}
